home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / anim / emotion.scr < prev    next >
Encoding:
Text File  |  2002-10-21  |  1.5 KB  |  60 lines

  1. // obsolete - this has been transfered to code
  2.  
  3. // Sets the name of the animation a character should use on his face
  4. // for a given emotion mode. We can do fancy things in here if we want,
  5. // as long as it returns a valid animation alias
  6.  
  7. start local.emotionmode:
  8.  
  9. switch (local.emotionmode)
  10. {
  11. case emotion_none:
  12.     self.emotionanim = facial_idle_neutral
  13.     break
  14. case emotion_neutral:
  15.     self.emotionanim = facial_idle_neutral
  16.     break
  17. case emotion_worry:
  18.     self.emotionanim = facial_idle_worry
  19.     break
  20. case emotion_panic:
  21.     self.emotionanim = facial_idle_panic
  22.     break
  23. case emotion_fear:
  24.     self.emotionanim = facial_idle_fear
  25.     break
  26. case emotion_disgust:
  27.     self.emotionanim = facial_idle_disgust
  28.     break
  29. case emotion_anger:
  30.     self.emotionanim = facial_idle_anger
  31.     break
  32. case emotion_determined:
  33.     self.emotionanim = facial_idle_determined
  34.     break
  35. case emotion_dead:
  36.     self.emotionanim = facial_idle_dead
  37.     break
  38. case emotion_curious:
  39. //    println "No curious emotion yet; using determined instead"
  40.     self.emotionanim = facial_idle_determined
  41.     break;
  42. default:
  43.     self.emotionanim = facial_idle_neutral
  44.     println "Illegal emotion mode supplied to emotion.scr"
  45.     println "Legal values are:"
  46.     println "  emotion_none"
  47.     println "  emotion_neutral"
  48.     println "  emotion_worry"
  49.     println "  emotion_panic"
  50.     println "  emotion_fear"
  51.     println "  emotion_disgust"
  52.     println "  emotion_anger"
  53.     println "  emotion_determined"
  54.     println "  emotion_dead"
  55.     println "  emotion_curious"
  56.     break
  57. }
  58.  
  59. end
  60.